﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="zh">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta charset="utf-8" />
    <style type="text/css">
        html, body {
            margin: 0px;
            font-family: Arial, Sans-Serif; /*font-size: 62.5%;*/
            font-size: 12px;
            height: 100%;
            padding: 2px 4px 4px 0px;
            overflow: hidden;
        }
    </style>
    <style type="text/css">
        .sidebar {
            width: 5px;
            height: 500px;
        }

            .sidebar .btn {
                width: 5px;
                height: 39px;
                background: url(/images/sidebar-on.gif);
                margin-top: 200px;
            }

                .sidebar .btn:hover {
                    background-position: 0 -39px;
                }

        .fleft {
            float: left;
        }
    </style>

    <link href="~/Lib/CleverTabs/context/themes/base/jquery-ui.css" rel="stylesheet" />
    @*这里一定要是这个版本的js否则显示不出来*@
    <script src="~/Scripts/jquery-1.8.3.min.js"></script>
    <script src="~/Lib/CleverTabs/scripts/jquery-ui.js"></script>
    <script src="~/Lib/CleverTabs/scripts/jquery.cleverTabs.js"></script>
    <script src="~/Lib/CleverTabs/scripts/jquery.contextMenu.js"></script>

    <script type="text/javascript">
        $(function () {
            $("#divFolding").click(
                function () {
                    self.parent.hideShowFrame();
                }
                );
        });
    </script>

    <script type="text/javascript">
        var tabs;
        $(function () {

            var h = $(document).height() - 35;
            $("#tabs").height(h); //关于这里我要说明一下，如果不设置高度的话，它默认并不是发100%占满屏幕的，所以我这里使用了计算的方式，初始化界面高度
            tabs = $('#tabs').cleverTabs();
            $(window).bind('resize', function () {
                tabs.resizePanelContainer();
            });

            tabs.add({
                url: 'http://www.baidu.com',
                label: '欢迎界面',
                //开启Tab后是否锁定(不允许关闭，默认: false)
                lock: false
            });
            $('input[type="button"]').button();

        });
        function addTab(url, name) {
            tabs.add({
                url: url,
                label: name
            });
        }</script>
 

</head>
<body>
    <div class="sidebar fleft">
        <div class="btn" id="divFolding">
        </div>
    </div>
    <div id="tabs" style="overflow:hidden; padding-top:0px; height:400px;">
        <ul></ul>
    </div>
</body>
</html>